package elijah.base.result;

public class IResult {
    private boolean result;
    private String error;
    private int errCode;

    private long time = System.currentTimeMillis();

    public int getErrCode() {
        return errCode;
    }

    public IResult setErrCode(int errCode) {
        this.errCode = errCode;
        return this;
    }

    public boolean isResult() {
        return result;
    }

    public IResult setResult(boolean result) {
        this.result = result;
        return this;
    }

    public String getError() {
        return error;
    }

    public IResult setError(String error) {
        this.error = error;
        return this;
    }

    public long getTime() {
        return time;
    }

    public IResult setTime(long time) {
        this.time = time;
        return this;
    }
}
